//
//  UsernameCell.m
//  VICKY ZONE
//
//  Created by sunx on 15/4/5.
//  Copyright (c) 2015年 sunx. All rights reserved.
//

#import "UsernameCell.h"

@implementation UsernameCell
-(instancetype)init {
    self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@""];
    CGRect rect = [ UIScreen mainScreen ].applicationFrame;
    
    
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    self.textLabel.text = [userDefault valueForKey:@"username"];
    self.backgroundColor = [UIColor clearColor];
    //self.backgroundColor = [UIColor whiteColor];
    self.textLabel.textColor = [UIColor colorWithRed:189.0/255.0 green:189.0/255.0 blue:189.0/255.0 alpha:1];
    self.textLabel.font = [UIFont fontWithName:nil size:25];
    self.textLabel.textAlignment = NSTextAlignmentCenter;
    self.height = rect.size.height *0.05;
    self.userInteractionEnabled = NO;
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
